package com.park.dao.resource;

import java.util.List;

import com.park.client.model.resource.ResourceCollectionModel;


public interface ResourceCollectionMapper {
	

	int insertSelective( ResourceCollectionModel record);
	    
	    /**
	     * 查询该用户是否已经收藏过该资�?
	     * @param record
	     * @return
	     */
	 	ResourceCollectionModel selectByObject( ResourceCollectionModel record);
		 
		 /**
		  * 该用户收藏的�?��资源
		  * @param userId
		  * @return
		  */
		 List< ResourceCollectionModel> selectByUserId(Long userId);
		 
		   /**
		     * 取消收藏
		     */
		 int cancelResource(ResourceCollectionModel record);
}